package com.czxy.demo05;

/**
 * Created by hp on 2020/2/2.
 */
public class Test26 {
    public static void main(String[] args) {
        Ticket t = new Ticket(100);

        TicketThread td = new TicketThread(t);
        Thread c1 = new Thread(td,"1");
        Thread c2 = new Thread(td,"2");
        Thread c3 = new Thread(td,"3");
        c1.start();
        c2.start();
        c3.start();
    }
}
